/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.app.course.study.entity;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 课程学习表Entity
 * @author zpp
 * @version 2020-02-11
 */
@Table(name="t_course_study", alias="a", columns={
		@Column(name="id", attrName="id", label="主键", isPK=true),
		@Column(name="course_id", attrName="courseId", label="课程主键"),
		@Column(name="user_id", attrName="userId", label="用户主键"),
		@Column(includeEntity=DataEntity.class),
	}, orderBy="a.update_date DESC"
)
public class AppCourseStudy extends DataEntity<AppCourseStudy> {
	
	private static final long serialVersionUID = 1L;
	private String courseId;		// 课程主键
	private String userId;		// 用户主键
	
	public AppCourseStudy() {
		this(null);
	}

	public AppCourseStudy(String id){
		super(id);
	}
	
	@Length(min=0, max=50, message="课程主键长度不能超过 50 个字符")
	public String getCourseId() {
		return courseId;
	}

	public void setCourseId(String courseId) {
		this.courseId = courseId;
	}
	
	@Length(min=0, max=64, message="用户主键长度不能超过 64 个字符")
	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}
	
}